package com.wangjiang.mario.admin.system.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wangjiang.mario.admin.system.domain.entity.RoleMenuEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface RoleMenuMapper extends BaseMapper<RoleMenuEntity> {
    Integer batchInsertRoleMenus(@Param("roleMenuList") List<RoleMenuEntity> roleMenuList);

    Integer deleteRoleMenuByRoleCode(@Param("roleCode") String roleCode);

    List<String> getMenusByRoleCode(@Param("roleCode") String roleCode);

    List<RoleMenuEntity> getRoleMenusByUserUUid(@Param("userUUid") String uuid);
}
